#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
//int main()
//{
//	int n,a;
//	scanf("%d", &n);
//	a = 1 << n;
//	printf("%d", a);
//	return 0;
//}
//int main()
//{
//	int age;
//	long s;
//	scanf("%d", &age);
//	s = 31560000 * age;
//	printf("%ld", s);
//	return 0;
//}
int main()
{
	float sum_score=0.0,min_score=100.0,max_score=0.0,score=0.0;
	int num;
	scanf("%d", & num);
	for (int i = 1; i <= num; i++)
	{
		scanf("%f", &score);
		sum_score += score;
		max_score = max_score > score ? max_score : score;
		min_score = min_score < score ? min_score : score;
	}
	printf("%.2f %.2f %.2f", max_score, min_score, sum_score / num);
	return 0;
}